package ClientAdmin;

import Both.Transport;

/**
 * Classe permettant d'effectuer des demandes de modification d'un client
 * administrateur
 * 
 * @author user
 * 
 */
public class DemandeModificationTransport {
    // Definir tous les champs de recherche possible
    Transport newTrans;
    Transport oldTrans;
    String nom;
    String description;
    int num;
    int capacite;

    String MDP;

    /**
     * Premier contructeur
     * 
     * @param newTrans
     * @param oldTrans
     */
    public DemandeModificationTransport(Transport oldTrans, Transport newTrans) {
        this.newTrans = newTrans;
        this.oldTrans = oldTrans;
        this.nom = null;
        this.num = 0;
        this.capacite = 0;
    }

    /**
     * Sedond constructeur
     * 
     * @param newTrans
     * @param nom
     * @param description
     * @param num
     * @param capacite
     */
    public DemandeModificationTransport(Transport newTrans, String nom,
            String description, int num, int capacite) {
        this.newTrans = newTrans;
        this.oldTrans = null;
        this.nom = nom;
        this.description = description;
        this.num = num;
        this.capacite = capacite;
    }

    public Transport getNewTrans() {
        return newTrans;
    }

    public Transport getOldTrans() {
        return oldTrans;
    }

    public String getNom() {
        return nom;
    }

    public String getDescription() {
        return description;
    }

    public int getNum() {
        return num;
    }

    public int getCapacite() {
        return capacite;
    }
}
